<?php

$installer = $this;

$installer->startSetup();

$installer->run("

-- DROP TABLE IF EXISTS {$this->getTable('advanceseo')};
CREATE TABLE {$this->getTable('advanceseo')} (
  `advanceseo_id` int(11) unsigned NOT NULL auto_increment,
  `type` varchar(255) NOT NULL default '',
  `url` text default '',
  PRIMARY KEY (`advanceseo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

    ");
$installer->installEntities();
$installer->endSetup(); 
Mage::getSingleton('catalog/url')->refreshRewrites();